<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="/js/jquery-1.8.3.js"></script>
    <script type="text/javascript">
        $(function(){
            BindEvent()
        })
        function BindEvent(){
            $("#add").click(function () {
                window.location="toadd";
            })
        }
    </script>
</head>
<body>
    <div>
        <h1>标准信息列表</h1>
        <input type="text" name="name">&nbsp;
        <input type="button" id="up" value="提交检索">&nbsp;
        <input type="button" id="add" value="新增检索">&nbsp;
        <input type="button" id="del" value="删除检索">&nbsp;
        <table>
            <thead>
                <tr>
                    <td><input type="checkbox" id="all"></td>
                    <td>标准号</td>
                    <td>中文名称</td>
                    <td>版本</td>
                    <td>发布日期</td>
                    <td>实施日期</td>
                    <td>操作</td>
                </tr>
            </thead>
            <tbody>
                <tr th:each="s : ${r.target}">
                    <td><input type="checkbox" class="check"></td>
                    <td th:text="${s.stdnum}"></td>
                    <td th:text="${s.zhname}"></td>
                    <td th:text="${s.version}"></td>
                    <td th:text="${#dates.format(s.releaseDate,'yyyy-MM-dd')}"></td>
                    <td th:text="${#dates.format(s.implDate,'yyyy-MM-dd')}"></td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>